package org.xiyinjihe.platform.po;

import java.io.Serializable;

/**
 * @author 
 */
public class VisitWithBLOBs extends Visit implements Serializable {
    /**
     * 来山目的
     */
    private String todo;

    /**
     * 拜访事项
     */
    private String visitMatters;

    private static final long serialVersionUID = 1L;

    public String getTodo() {
        return todo;
    }

    public void setTodo(String todo) {
        this.todo = todo;
    }

    public String getVisitMatters() {
        return visitMatters;
    }

    public void setVisitMatters(String visitMatters) {
        this.visitMatters = visitMatters;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        VisitWithBLOBs other = (VisitWithBLOBs) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getArriveTime() == null ? other.getArriveTime() == null : this.getArriveTime().equals(other.getArriveTime()))
            && (this.getLeaveTime() == null ? other.getLeaveTime() == null : this.getLeaveTime().equals(other.getLeaveTime()))
            && (this.getSubmitTime() == null ? other.getSubmitTime() == null : this.getSubmitTime().equals(other.getSubmitTime()))
            && (this.getTodo() == null ? other.getTodo() == null : this.getTodo().equals(other.getTodo()))
            && (this.getVisitMatters() == null ? other.getVisitMatters() == null : this.getVisitMatters().equals(other.getVisitMatters()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getArriveTime() == null) ? 0 : getArriveTime().hashCode());
        result = prime * result + ((getLeaveTime() == null) ? 0 : getLeaveTime().hashCode());
        result = prime * result + ((getSubmitTime() == null) ? 0 : getSubmitTime().hashCode());
        result = prime * result + ((getTodo() == null) ? 0 : getTodo().hashCode());
        result = prime * result + ((getVisitMatters() == null) ? 0 : getVisitMatters().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", todo=").append(todo);
        sb.append(", visitMatters=").append(visitMatters);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}